package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-05-20
 */
@TableName("wz_goods_type")
public class WzGoodsType extends Model<WzGoodsType> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "goods_type_id", type = IdType.AUTO)
    private Integer goodsTypeId;
    /**
     * 名称
     */
    private String name;
    /**
     * 层级
     */
    private Integer level;
    /**
     * 父级id
     */
    @TableField("parent_id")
    private Integer parentId;
    /**
     * 全拼
     */
    @TableField("full_name")
    private String fullName;
    /**
     * 图片
     */
    private String pic;


    public Integer getGoodsTypeId() {
        return goodsTypeId;
    }

    public void setGoodsTypeId(Integer goodsTypeId) {
        this.goodsTypeId = goodsTypeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    @Override
    protected Serializable pkVal() {
        return this.goodsTypeId;
    }

    @Override
    public String toString() {
        return "WzGoodsType{" +
        "goodsTypeId=" + goodsTypeId +
        ", name=" + name +
        ", level=" + level +
        ", parentId=" + parentId +
        ", fullName=" + fullName +
        ", pic=" + pic +
        "}";
    }
}
